 package edu.suda.xsap.dto.convert;

import edu.suda.xsap.dto.Statistics_courseconsumeDto;
import edu.suda.xsap.entity.Statistics_courseconsume;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface Statistics_courseconsumeConvert {

    @Mapping(source="name", target = "name")
    @Mapping(source="countcourse", target = "countcourse")
    @Mapping(source="countmoney", target = "countmoney")
    @Mapping(source="month", target = "month")
    @Mapping(source="year", target = "year")
    Statistics_courseconsumeDto toDto(Statistics_courseconsume statistics_courseconsume);

    List<Statistics_courseconsumeDto> toDtoList(List<Statistics_courseconsume> statistics_courseconsumes);
}
